package com.pzh.guli.service.edu.service;

import com.pzh.guli.service.base.handler.HandlerException;
import com.pzh.guli.service.edu.pojo.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pzh.guli.service.edu.pojo.vo.OrderVo;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xzh
 * @since 2022-07-21
 */
public interface IOrderService extends IService<Order> {

    String createOrder(String courseId, HttpServletRequest request) throws HandlerException;

    boolean isBuyCourse(String courseId, HttpServletRequest request) throws HandlerException;

    OrderVo getOrderVoInfoByCourseId(String courseId, HttpServletRequest request) throws HandlerException;
}
